<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><ui:insert name="title">Default Title</ui:insert></title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
        <!--<link href="./resources/css/default.css" rel="stylesheet" type="text/css" />-->
        <h:outputStylesheet name="css/default.css"/>
    </h:head>

    <h:body>
        <div id="central">


            <!--
                        <h2 id="pageTitle">
                            <ui:insert name="title">Default Title</ui:insert>
                        </h2>-->
            <!--<ui:insert name="top"></ui:insert>-->



            <div id="content">
                <div id="mainForm">
                    <div id="topMenu">
                        <h:form>

                            <h:link styleClass="menuLink" value="hlavní stránka" outcome="/index" rendered="#{!loginBean.isUserLogged}"/>
                            <h:link styleClass="menuLink" value="nastavení hesla" outcome="/pages/user/ChangeAccount" rendered="#{loginBean.isUserLogged}" />
                            <h:link styleClass="menuLink" value="nápověda" outcome="/help" />
                            <h:link styleClass="menuLink" value="moje zprávy" outcome="/pages/user/List" rendered="#{loginBean.isUserLogged and !loginBean.isAdminLogged}"/>
                            <h:link  styleClass="menuLink" value="všechny zprávy" outcome="/pages/admin/requirement/List" rendered="#{loginBean.isAdminLogged}"/>
                            <h:link  styleClass="menuLink" value="přihlásit se" outcome="/login" rendered="#{!loginBean.isUserLogged and !loginBean.isAdminLogged}"/>
                            <h:commandLink  styleClass="menuLink" value="odhlásit se" action="#{loginBean.logout}" rendered="#{loginBean.isUserLogged or loginBean.isAdminLogged}"/>

                        </h:form>

                    </div>
                    <div id="wrapper">
                        <div id="mainContent">
                            <div id="rightContent">
                                <ui:insert name="body">Default Body</ui:insert>
                            </div>
                        </div>
                    </div>
                    
                    <div class="clear"/>
                </div>
                    <div id="footer">
                        <div id="footerText">
                        &copy; stana <br/>
                        Powered by <a href="http://www.yr.no">
                            <h:graphicImage styleClass="yrLogo" url="/resources/yr-logo.png"/>
                        </a>and Yahoo! PlaceFinder.
                        </div>
                    </div>

            </div>
        </div>
    </h:body>

</html>
